<div class="modal hide fade" id="{$T.id}">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">&times;</button>
		<h3>Edit {$T.ptype}</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal" method="POST" action="{$T.actionUrl}">
			<fieldset>
				<div class="control-group">
					<label class="control-label" for="title">Title</label>
					<div class="controls">
						<input type="text" name="title" class="input-xlarge" value="{$T.titleValue}" />
						<span class="help-inline"></span>
					</div>
				</div>

				{#if $T.type === 'bookmark'}
				<div class="control-group">
					<label class="control-label" for="url">URL</label>
					<div class="controls">
						<input type="text" name="url" class="input-xlarge" value="{$T.urlValue}" /> <span
							class="help-inline"></span>
					</div>
				</div>
				{#/if}
				
				<div class="control-group">
					<label class="control-label" for="info">Description</label>
					<div class="controls">
						<textarea name="info" class="input-xlarge" value="">{$T.infoValue}</textarea>
						<span class="help-inline"></span>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label" for="tagString">Tags</label>
					<div class="controls">
						<input type="text" name="tagString" class="input-xlarge" value="{$T.tagsValue}" />
						<span class="help-inline"></span>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label" for="isPublic">Public</label>
					<div class="controls">
						<input type="checkbox" name="isPublic" class="input-xlarge"
							value="isPublic" /> <span class="help-inline"></span>
					</div>
				</div>
		</form>


	</div>
	<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" id="submit-{$T.id}"
			class="btn btn-primary">Save changes</a>
	</div>
</div>

